import Vue from 'vue';
import Notification from './index.vue';

const constructor = Vue.extend(Notification); //注册实例

export const OfflineNotification = (options, methods = {}) => {
	// new 一个实例
	const instance = new constructor({
		data: options, // 存放数据
		methods //存放方法
	}).$mount(); //将实例进行挂载
	document.body.appendChild(instance.$el);
	
}